// 导出属于员工的路由规则
import Layout from '@/layout'
//  {  path: '', component: '' }
// 每个子模块 其实 都是外层是layout  组件位于layout的二级路由里面
export default {
  path: '/transport', // 路径
  name: 'transport', // 给路由规则加一个name
  component: Layout, // 组件
  redirect: '/transport/transport-task',
  meta: {
    title: '调度管理', // meta属性的里面的属性 随意定义 但是这里为什么要用title呢， 因为左侧导航会读取我们的路由里的meta里面的title作为显示菜单名称
    iconImg: require('@/icons/iconMenu/diaodu.png')
  },
  children: [
    {
      path: 'transport-task',
      component: () => import('@/views/transport/transport-task'),
      meta: {
        title: '运输任务管理'
      }
    },
    {
      path: 'line-manage',
      component: () => import('@/views/transport/line-manage'),
      meta: {
        title: '线路管理'
      }
    },
    {
      path: '/branches/pickUptask',
      component: () => import('@/views/transport/pickUptask'),
      meta: {
        title: '取件作业管理'
      }
    },
    {
      path: '/branches/dispatchTask',
      component: () => import('@/views/transport/dispatchTask'),
      meta: {
        title: '派件作业管理'
      }
    },
    {
      path: 'task-detail',
      component: () => import('@/views/transport/task-detail'),
      hidden: true,
      meta: {
        title: '运输任务详情'
      }
    }
  ]
}
